package com.demo.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

public class register extends HttpServlet {
    protected void service(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {
        System.out.println("zzzz");
        /*PrintWriter out=resp.getWriter();
        out.println("<html>");//输出bai的内容du要放zhi在body中dao
        out.println("<body>");
        out.println("666.........");
        out.println("</body>");
        out.println("</html>");*/
        System.out.println("zzzz");
        System.out.println("666");
        PrintWriter writer = resp.getWriter();
        writer.println("Hello,World!");
    }
}
